package top.huhuiyu.springboot2.entity;

import java.io.Serializable;
import java.util.Date;

public class TbNews implements Serializable {
  private static final long serialVersionUID = 1L;

  private Integer nid;
  private String title;
  private String content;
  private String source;
  private Integer hits;
  private java.util.Date publishTime;

  //ctrl + alt + l
  @Override
  public String toString() {
    return "TbNews{" + "nid=" + nid + ", title='" + title + '\'' + ", content='" + content + '\'' + ", source='" + source + '\'' + ", hits=" + hits + ", publishTime=" + publishTime + '}';
  }

  public Integer getNid() {
    return nid;
  }

  public void setNid(Integer nid) {
    this.nid = nid;
  }

  public String getTitle() {
    return title;
  }

  public void setTitle(String title) {
    this.title = title;
  }

  public String getContent() {
    return content;
  }

  public void setContent(String content) {
    this.content = content;
  }

  public String getSource() {
    return source;
  }

  public void setSource(String source) {
    this.source = source;
  }

  public Integer getHits() {
    return hits;
  }

  public void setHits(Integer hits) {
    this.hits = hits;
  }

  public Date getPublishTime() {
    return publishTime;
  }

  public void setPublishTime(Date publishTime) {
    this.publishTime = publishTime;
  }
}
